function uuid() {
    const str =
        'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
    const arr = [];
    for (let i = 0; i < 10; i++) {
        arr.push(str[Math.floor(Math.random() * str.length)]);
    }
    return arr.join('');
}

module.exports = { uuid };
